<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>markdown 语法 | 字号楼</title><meta name="author" content="字号楼"><meta name="copyright" content="字号楼"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="标题要创建标题，请#在单词或短语的前面添加数字符号（）。您使用的数字符号的数量应与标题级别相对应。例如，要创建标题级别三（&lt;h3&gt;），请使用三个数字符号（例如### My Header）。    Markdown HTML 渲染输出    # Heading level 1 &lt;h1&gt;Heading level 1&lt;&#x2F;h1&gt; 标题等级1   ## Heading">
<meta property="og:type" content="article">
<meta property="og:title" content="markdown 语法">
<meta property="og:url" content="https://jokerjs.github.io/2023/04/12/markdown-grammar/index.html">
<meta property="og:site_name" content="字号楼">
<meta property="og:description" content="标题要创建标题，请#在单词或短语的前面添加数字符号（）。您使用的数字符号的数量应与标题级别相对应。例如，要创建标题级别三（&lt;h3&gt;），请使用三个数字符号（例如### My Header）。    Markdown HTML 渲染输出    # Heading level 1 &lt;h1&gt;Heading level 1&lt;&#x2F;h1&gt; 标题等级1   ## Heading">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://jokerjs.github.io/images/archives/Snipaste_2023-04-12_16-36-06.png">
<meta property="article:published_time" content="2023-04-12T08:33:46.415Z">
<meta property="article:modified_time" content="2023-04-12T10:27:51.523Z">
<meta property="article:author" content="字号楼">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://jokerjs.github.io/images/archives/Snipaste_2023-04-12_16-36-06.png"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://jokerjs.github.io/2023/04/12/markdown-grammar/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script async="async" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script>(adsbygoogle = window.adsbygoogle || []).push({
  google_ad_client: 'ca-pub-8765718050881565',
  enable_page_level_ads: 'true'
});</script><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  dateSuffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: false,
  }
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'markdown 语法',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2023-04-12 18:27:51'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
    win.getCSS = (url,id = false) => new Promise((resolve, reject) => {
      const link = document.createElement('link')
      link.rel = 'stylesheet'
      link.href = url
      if (id) link.id = id
      link.onerror = reject
      link.onload = link.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        link.onload = link.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(link)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><link rel="stylesheet" href="/css/modify.css"><meta name="generator" content="Hexo 6.3.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/images/author.jpeg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">2</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 娱乐</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('/images/archives/Snipaste_2023-04-12_16-36-27.png')"><nav id="nav"><span id="blog-info"><a href="/" title="字号楼"><span class="site-name">字号楼</span></a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 娱乐</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">markdown 语法</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-04-12T08:33:46.415Z" title="发表于 2023-04-12 16:33:46">2023-04-12</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-04-12T10:27:51.523Z" title="更新于 2023-04-12 18:27:51">2023-04-12</time></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="markdown 语法"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h1 id="标题"><a href="#标题" class="headerlink" title="标题"></a>标题</h1><p>要创建标题，请#在单词或短语的前面添加数字符号（）。您使用的数字符号的数量应与标题级别相对应。例如，要创建标题级别三（&lt;h3&gt;），请使用三个数字符号（例如### My Header）。</p>
<table>
<thead>
<tr>
<th align="left">Markdown</th>
<th align="left">HTML</th>
<th align="left">渲染输出</th>
</tr>
</thead>
<tbody><tr>
<td align="left"># Heading level 1</td>
<td align="left"><code>&lt;h1&gt;Heading level 1&lt;/h1&gt;</code></td>
<td align="left"><h1>标题等级1</h1></td>
</tr>
<tr>
<td align="left">## Heading level 2</td>
<td align="left"><code>&lt;h2&gt;Heading level 2&lt;/h2&gt;</code></td>
<td align="left"><h2>标题等级2</h2></td>
</tr>
<tr>
<td align="left">### Heading level 3</td>
<td align="left"><code>&lt;h3&gt;Heading level 3&lt;/h3&gt;</code></td>
<td align="left"><h3>标题等级3</h3></td>
</tr>
<tr>
<td align="left">#### Heading level 4</td>
<td align="left"><code>&lt;h4&gt;Heading level 4&lt;/h4&gt;</code></td>
<td align="left"><h4>标题等级4</h4></td>
</tr>
<tr>
<td align="left">##### Heading level 5</td>
<td align="left"><code>&lt;h5&gt;Heading level 5&lt;/h5&gt;</code></td>
<td align="left"><h5>标题等级5</h5></td>
</tr>
<tr>
<td align="left">###### Heading level 6</td>
<td align="left"><code>&lt;h6&gt;Heading level 6&lt;/h6&gt;</code></td>
<td align="left"><h6>标题等级6</h6></td>
</tr>
</tbody></table>
<h1 id="段落"><a href="#段落" class="headerlink" title="段落"></a>段落</h1><p>要创建段落，请使用空白行分隔一行或多行文本。您不应缩进带有空格或制表符的段落。</p>
<table>
<thead>
<tr>
<th align="left">Markdown</th>
<th align="left">HTML</th>
<th align="left">渲染输出</th>
</tr>
</thead>
<tbody><tr>
<td align="left">我真的很喜欢使用Markdown。</td>
<td align="left"><code>&lt;p&gt;我真的很喜欢使用Markdown。&lt;/p&gt;</code></td>
<td align="left">我真的很喜欢使用Markdown。</td>
</tr>
</tbody></table>
<h1 id="换行"><a href="#换行" class="headerlink" title="换行"></a>换行</h1><p>要创建换行符（&lt;br&gt;），请以两个或多个空格结束一行，然后键入return。</p>
<table>
<thead>
<tr>
<th align="left">Markdown</th>
<th align="left">HTML</th>
<th align="left">渲染输出</th>
</tr>
</thead>
<tbody><tr>
<td align="left">这是第一行<br>这是第二行</td>
<td align="left"><code>&lt;p&gt;这是第一行&lt;/p&gt;</code><br><code>&lt;p&gt;这是第二行&lt;/p&gt;</code></td>
<td align="left">这是第一行<br>这是第二行</td>
</tr>
</tbody></table>
<h1 id="着重"><a href="#着重" class="headerlink" title="着重"></a>着重</h1><p>您可以通过使文本变为粗体或斜体来增加着重。</p>
<h2 id="粗体"><a href="#粗体" class="headerlink" title="粗体"></a>粗体</h2><p>要加粗文本，请在单词或短语的前后添加两个星号或下划线。要加粗一个单词的中部以强调，请在字母周围添加两个星号，且各空格之间不加空格。</p>
<table>
<thead>
<tr>
<th align="left">Markdown</th>
<th align="left">HTML</th>
<th align="left">渲染输出</th>
</tr>
</thead>
<tbody><tr>
<td align="left">我只喜欢 **粗体字**</td>
<td align="left"><code>我只喜欢 &lt;strong&gt;粗体字&lt;/strong&gt;</code></td>
<td align="left">我只喜欢 <strong>粗体字</strong></td>
</tr>
</tbody></table>
<h2 id="斜体"><a href="#斜体" class="headerlink" title="斜体"></a>斜体</h2><p>要斜体显示文本，请在单词或短语的前后添加一个星号或下划线。要斜体突出单词的中间部分，请在字母周围添加一个星号，中间不要带空格。</p>
<table>
<thead>
<tr>
<th align="left">Markdown</th>
<th align="left">HTML</th>
<th align="left">渲染输出</th>
</tr>
</thead>
<tbody><tr>
<td align="left">斜体文字是 *猫的叫声*</td>
<td align="left"><code>斜体文字是 &lt;em&gt;猫的叫声&lt;/em&gt;.</code></td>
<td align="left">斜体文字是 <em>猫的叫声</em>.</td>
</tr>
</tbody></table>
<h2 id="粗体和斜体"><a href="#粗体和斜体" class="headerlink" title="粗体和斜体"></a>粗体和斜体</h2><p>要同时突出显示带有粗体和斜体的文本，请在单词或短语的前后添加三个星号或下划线。</p>
<table>
<thead>
<tr>
<th align="left">Markdown</th>
<th align="left">HTML</th>
<th align="left">渲染输出</th>
</tr>
</thead>
<tbody><tr>
<td align="left">这段文字 ***真的很重要***</td>
<td align="left"><code>这段文字 &lt;strong&gt;&lt;em&gt;真的很重要&lt;/em&gt;&lt;/strong&gt;.</code></td>
<td align="left">这段文字 <em><strong>真的很重要</strong></em>.</td>
</tr>
</tbody></table>
<h1 id="块引用"><a href="#块引用" class="headerlink" title="块引用"></a>块引用</h1><p>要创建blockquote，请&gt;在段落前面添加一个。</p>
<pre><code>&gt; 桃乐丝（Dorothy）跟着她走过了她城堡中许多美丽的房间。
</code></pre>
<p>呈现的输出如下所示：</p>
<blockquote>
<p>桃乐丝（Dorothy）跟着她走过了她城堡中许多美丽的房间。</p>
</blockquote>
<h2 id="具有多个段落的块引用"><a href="#具有多个段落的块引用" class="headerlink" title="具有多个段落的块引用"></a>具有多个段落的块引用</h2><p>块引用可以包含多个段落。&gt;在段落之间的空白行上添加一个。</p>
<pre><code>&gt; 桃乐丝（Dorothy）跟着她走过了她城堡中许多美丽的房间。
&gt;
&gt; 女巫请她清洗锅碗瓢盆，扫地，并用木柴取火。
</code></pre>
<p>呈现的输出如下所示：</p>
<blockquote>
<p>桃乐丝（Dorothy）跟着她走过了她城堡中许多美丽的房间。</p>
<p>女巫请她清洗锅碗瓢盆，扫地，并用木柴取火。</p>
</blockquote>
<h2 id="嵌套块引用"><a href="#嵌套块引用" class="headerlink" title="嵌套块引用"></a>嵌套块引用</h2><p>块引用可以嵌套。&gt;&gt;在要嵌套的段落前面添加一个。</p>
<p>块引用可以包含多个段落。&gt;在段落之间的空白行上添加一个。</p>
<pre><code>&gt; 桃乐丝（Dorothy）跟着她走过了她城堡中许多美丽的房间。
&gt;
&gt;&gt; 女巫请她清洗锅碗瓢盆，扫地，并用木柴取火。
</code></pre>
<p>呈现的输出如下所示：</p>
<blockquote>
<p>桃乐丝（Dorothy）跟着她走过了她城堡中许多美丽的房间。</p>
<blockquote>
<p>女巫请她清洗锅碗瓢盆，扫地，并用木柴取火。</p>
</blockquote>
</blockquote>
<h1 id="清单"><a href="#清单" class="headerlink" title="清单"></a>清单</h1><p>您可以将项目组织成有序和无序列表。</p>
<h2 id="有序列表"><a href="#有序列表" class="headerlink" title="有序列表"></a>有序列表</h2><p>要创建有序列表，请在订单项中添加数字和句点。数字不必按数字顺序排列，但列表应以数字开头。</p>
<table>
<thead>
<tr>
<th align="left">Markdown</th>
<th align="left">HTML</th>
<th align="left">渲染输出</th>
</tr>
</thead>
<tbody><tr>
<td align="left">1. 第一项<br>2. 第二项<br>3. 第三项</td>
<td align="left"><code>&lt;ol&gt;</code><br><code>&lt;li&gt;第一项&lt;/li&gt;</code><br><code>&lt;li&gt;第二项&lt;/li&gt;</code><br><code>&lt;li&gt;第三项&lt;/li&gt;</code><br><code>&lt;/ol&gt;</code></td>
<td align="left">1. 第一项<br>2. 第二项<br>3. 第三项</td>
</tr>
<tr>
<td align="left">1. 第一项<br>1. 第二项<br>1. 第三项</td>
<td align="left"><code>&lt;ol&gt;</code><br><code>&lt;li&gt;第一项&lt;/li&gt;</code><br><code>&lt;li&gt;第二项&lt;/li&gt;</code><br><code>&lt;li&gt;第三项&lt;/li&gt;</code><br><code>&lt;/ol&gt;</code></td>
<td align="left">1. 第一项<br>2. 第二项<br>3. 第三项</td>
</tr>
<tr>
<td align="left">1. 第一项<br>8. 第二项<br>3. 第三项</td>
<td align="left"><code>&lt;ol&gt;</code><br><code>&lt;li&gt;第一项&lt;/li&gt;</code><br><code>&lt;li&gt;第二项&lt;/li&gt;</code><br><code>&lt;li&gt;第三项&lt;/li&gt;</code><br><code>&lt;/ol&gt;</code></td>
<td align="left">1. 第一项<br>2. 第二项<br>3. 第三项</td>
</tr>
<tr>
<td align="left">1. 第一项<br>2. 第二项<figure>1. 缩进项<br>2. 缩进项</figure>3. 第三项</td>
<td align="left"><code>&lt;ol&gt;</code><br><code>&lt;li&gt;第一项&lt;/li&gt;</code><br><code>&lt;li&gt;第二项&lt;/li&gt;</code><br><code>&lt;ol&gt;</code><br><code>&lt;li&gt;缩进项&lt;/li&gt;</code><br><code>&lt;li&gt;缩进项&lt;/li&gt;</code><br><code>&lt;/ol&gt;</code><br><code>&lt;li&gt;第三项&lt;/li&gt;</code><br><code>&lt;/ol&gt;</code></td>
<td align="left">1. 第一项<br>2. 第二项<figure>1. 缩进项<br>2. 缩进项</figure>3. 第三项</td>
</tr>
</tbody></table>
<h2 id="无序列表"><a href="#无序列表" class="headerlink" title="无序列表"></a>无序列表</h2><p>要创建无序列表，请在订单项前添加破折号（-），星号（*）或加号（+）。缩进一个或多个项目以创建嵌套列表。</p>
<table>
<thead>
<tr>
<th align="left">Markdown</th>
<th align="left">HTML</th>
<th align="left">渲染输出</th>
</tr>
</thead>
<tbody><tr>
<td align="left">- 第一项<br>- 第二项<br>- 第三项</td>
<td align="left"><code>&lt;ul&gt;</code><br><code>&lt;li&gt;第一项&lt;/li&gt;</code><br><code>&lt;li&gt;第二项&lt;/li&gt;</code><br><code>&lt;li&gt;第三项&lt;/li&gt;</code><br><code>&lt;/ul&gt;</code></td>
<td align="left"><ul><li>第一项</li><li>第二项</li><li>第三项</li></ul></td>
</tr>
<tr>
<td align="left">* 第一项<br>* 第二项<br>* 第三项</td>
<td align="left"><code>&lt;ul&gt;</code><br><code>&lt;li&gt;第一项&lt;/li&gt;</code><br><code>&lt;li&gt;第二项&lt;/li&gt;</code><br><code>&lt;li&gt;第三项&lt;/li&gt;</code><br><code>&lt;/ul&gt;</code></td>
<td align="left"><ul><li>第一项</li><li>第二项</li><li>第三项</li></ul></td>
</tr>
<tr>
<td align="left">* 第一项<br>- 第二项<br>+ 第三项</td>
<td align="left"><code>&lt;ul&gt;</code><br><code>&lt;li&gt;第一项&lt;/li&gt;</code><br><code>&lt;li&gt;第二项&lt;/li&gt;</code><br><code>&lt;li&gt;第三项&lt;/li&gt;</code><br><code>&lt;/ul&gt;</code></td>
<td align="left"><ul><li>第一项</li><li>第二项</li><li>第三项</li></ul></td>
</tr>
<tr>
<td align="left">- 第一项<br>- 第二项<figure>- 缩进项<br>- 缩进项</figure>- 第三项</td>
<td align="left"><code>&lt;ul&gt;</code><br><code>&lt;li&gt;第一项&lt;/li&gt;</code><br><code>&lt;li&gt;第二项&lt;/li&gt;</code><br><code>&lt;ul&gt;</code><br><code>&lt;li&gt;缩进项&lt;/li&gt;</code><br><code>&lt;li&gt;缩进项&lt;/li&gt;</code><br><code>&lt;/ul&gt;</code><br><code>&lt;li&gt;第三项&lt;/li&gt;</code><br><code>&lt;/ul&gt;</code></td>
<td align="left"><ul><li>第一项</li><li>第二项</li><ul><li>缩进项</li><li>缩进项</li></ul><li>第三项</li></ul></td>
</tr>
</tbody></table>
<h2 id="在列表中添加元素"><a href="#在列表中添加元素" class="headerlink" title="在列表中添加元素"></a>在列表中添加元素</h2><p>要在保留列表连续性的同时在列表中添加另一个元素，请将该元素缩进四个空格或一个制表符，如以下示例所示。</p>
<h3 id="段落-1"><a href="#段落-1" class="headerlink" title="段落"></a>段落</h3><pre><code>*   这是第一个列表项。
*   这是第二个列表项。

    我需要在第二个列表项下面添加另一段。

*   这是第三个列表项。
</code></pre>
<p>呈现的输出如下所示：</p>
<ul>
<li>这是第一个列表项。</li>
<li>这是第二个列表项。<br>我需要在第二个列表项下面添加另一段。</li>
<li>这是第三个列表项。</li>
</ul>
<h3 id="块引用-1"><a href="#块引用-1" class="headerlink" title="块引用"></a>块引用</h3><pre><code>*   这是第一个列表项。
*   这是第二个列表项。

    &gt;我需要在第二个列表项下面添加另一段。

*   这是第三个列表项。
</code></pre>
<p>呈现的输出如下所示：</p>
<ul>
<li><p>这是第一个列表项。</p>
</li>
<li><p>这是第二个列表项。</p>
<blockquote>
<p>我需要在第二个列表项下面添加另一段。</p>
</blockquote>
</li>
<li><p>这是第三个列表项。</p>
</li>
</ul>
<h1 id="链接"><a href="#链接" class="headerlink" title="链接"></a>链接</h1><p>要创建链接，请将链接文本括在方括号（例如[bing]）中，然后立即在URL后面加上括号（例如( <a target="_blank" rel="noopener" href="https://bing.com/">https://bing.com</a> )） 中的URL</p>
<pre><code>我最喜欢的搜索引擎是 [bing](https://bing.com).
</code></pre>
<p>呈现的输出如下所示：</p>
<p>我最喜欢的搜索引擎是<a target="_blank" rel="noopener" href="https://bing.com/">bing</a></p>
<h2 id="添加标题"><a href="#添加标题" class="headerlink" title="添加标题"></a>添加标题</h2><p>您可以选择为链接添加标题。当用户将鼠标悬停在链接上时，这将显示为工具提示。要添加标题，请将其括在URL后面的括号中。</p>
<pre><code>我最喜欢的搜索引擎是 [bing](https://bing.com).
</code></pre>
<p>呈现的输出如下所示：</p>
<p>我最喜欢的搜索引擎是<a target="_blank" rel="noopener" href="https://bing.com/">bing</a></p>
<h2 id="网址和电子邮件地址"><a href="#网址和电子邮件地址" class="headerlink" title="网址和电子邮件地址"></a>网址和电子邮件地址</h2><p>要将URL或电子邮件地址快速转换为链接，请将其括在尖括号中。</p>
<pre><code>&lt;https://markdown.p2hp.com&gt;
&lt;fake@example.com&gt;
</code></pre>
<p>呈现的输出如下所示：<br><a target="_blank" rel="noopener" href="https://markdown.p2hp.com/">https://markdown.p2hp.com</a><br><a href="mailto:&#x66;&#x61;&#107;&#x65;&#x40;&#101;&#x78;&#x61;&#x6d;&#112;&#x6c;&#x65;&#x2e;&#x63;&#x6f;&#x6d;">&#x66;&#x61;&#107;&#x65;&#x40;&#101;&#x78;&#x61;&#x6d;&#112;&#x6c;&#x65;&#x2e;&#x63;&#x6f;&#x6d;</a></p>
<h1 id="图片"><a href="#图片" class="headerlink" title="图片"></a>图片</h1><p>要添加图像，请添加感叹号（!），然后在括号中添加替代文本，并在括号中添加图像资源的路径或URL。您可以选择在括号中的URL之后添加标题。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">![一张图片](/images/banner/photo-1679487660442-804ec2b61fa6.jpeg &quot;一张图片&quot;)</span><br></pre></td></tr></table></figure>
<p>呈现的输出如下所示：</p>
<p><img src="/images/banner/photo-1679487660442-804ec2b61fa6.jpeg" alt="一张图片" title="一张图片"></p>
<h2 id="链接图像"><a href="#链接图像" class="headerlink" title="链接图像"></a>链接图像</h2><p>要向图像添加链接，请将图像的Markdown括在方括号中，然后在括号中添加链接。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[![一张图片](/images/banner/photo-1679487660442-804ec2b61fa6.jpeg &quot;一张图片&quot;)](https://www.bing.com)</span><br></pre></td></tr></table></figure>
<p>呈现的输出如下所示：</p>
<p><a target="_blank" rel="noopener" href="https://www.bing.com/"><img src="/images/banner/photo-1679487660442-804ec2b61fa6.jpeg" alt="一张图片" title="一张图片"></a></p>
<h1 id="转义字符"><a href="#转义字符" class="headerlink" title="转义字符"></a>转义字符</h1><p>要显示原义字符，否则将用于设置Markdown文档中的文本格式\，请在字符前面添加反斜杠（）。</p>
<pre><code>\* 如果没有反斜杠，这将是无序列表中的项目符号。
</code></pre>
<p>呈现的输出如下所示：<br>* 如果没有反斜杠，这将是无序列表中的项目符号。</p>
<h2 id="你可以转义的字符"><a href="#你可以转义的字符" class="headerlink" title="你可以转义的字符"></a>你可以转义的字符</h2><p>您可以使用反斜杠转义以下字符。</p>
<table>
<thead>
<tr>
<th align="left">字符</th>
<th align="left">名称</th>
</tr>
</thead>
<tbody><tr>
<td align="left">\</td>
<td align="left">反斜杠</td>
</tr>
<tr>
<td align="left">&#96;</td>
<td align="left">刻度线</td>
</tr>
<tr>
<td align="left">*</td>
<td align="left">星号</td>
</tr>
<tr>
<td align="left">_</td>
<td align="left">下划线</td>
</tr>
<tr>
<td align="left">{}</td>
<td align="left">大括号</td>
</tr>
<tr>
<td align="left">[]</td>
<td align="left">中括号</td>
</tr>
<tr>
<td align="left">()</td>
<td align="left">括号</td>
</tr>
<tr>
<td align="left">#</td>
<td align="left">井号</td>
</tr>
<tr>
<td align="left">+</td>
<td align="left">加号</td>
</tr>
<tr>
<td align="left">-</td>
<td align="left">减号（连字符）</td>
</tr>
<tr>
<td align="left">.</td>
<td align="left">点</td>
</tr>
<tr>
<td align="left">!</td>
<td align="left">感叹号</td>
</tr>
<tr>
<td align="left">|</td>
<td align="left">管道（另请参见表中的转义<a target="_blank" rel="noopener" href="http://markdown.p2hp.com/extended-syntax/index.html#escaping-pipe-characters-in-tables">管道</a>）</td>
</tr>
</tbody></table>
<p><a target="_blank" rel="noopener" href="https://www.5axxw.com/wiki/topic/vxf8nl"><em>其他语法</em></a></p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="https://Jokerjs.github.io">字号楼</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://jokerjs.github.io/2023/04/12/markdown-grammar/">https://jokerjs.github.io/2023/04/12/markdown-grammar/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://Jokerjs.github.io" target="_blank">字号楼</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"></div><div class="post_share"><div class="social-share" data-image="/images/archives/Snipaste_2023-04-12_16-36-06.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="next-post pull-full"><a href="/2023/04/12/hexo-install/" title="Hexo安装教程"><img class="cover" src="/images/archives/Snipaste_2023-04-12_16-14-55.png" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">Hexo安装教程</div></div></a></div></nav><hr/><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i><span> 评论</span></div></div><div class="comment-wrap"><div><div id="gitalk-container"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="/images/author.jpeg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">字号楼</div><div class="author-info__description"></div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">2</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/Jokerjs"><i class="fab fa-github"></i><span>关注我</span></a></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#%E6%A0%87%E9%A2%98"><span class="toc-number">1.</span> <span class="toc-text">标题</span></a></li><li class="toc-item toc-level-1"><a class="toc-link"><span class="toc-number">2.</span> <span class="toc-text">标题等级1</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link"><span class="toc-number">2.1.</span> <span class="toc-text">标题等级2</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link"><span class="toc-number">2.1.1.</span> <span class="toc-text">标题等级3</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link"><span class="toc-number">2.1.1.1.</span> <span class="toc-text">标题等级4</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link"><span class="toc-number">2.1.1.1.1.</span> <span class="toc-text">标题等级5</span></a><ol class="toc-child"><li class="toc-item toc-level-6"><a class="toc-link"><span class="toc-number">2.1.1.1.1.1.</span> <span class="toc-text">标题等级6</span></a></li></ol></li></ol></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E6%AE%B5%E8%90%BD"><span class="toc-number">3.</span> <span class="toc-text">段落</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E6%8D%A2%E8%A1%8C"><span class="toc-number">4.</span> <span class="toc-text">换行</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E7%9D%80%E9%87%8D"><span class="toc-number">5.</span> <span class="toc-text">着重</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%B2%97%E4%BD%93"><span class="toc-number">5.1.</span> <span class="toc-text">粗体</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%96%9C%E4%BD%93"><span class="toc-number">5.2.</span> <span class="toc-text">斜体</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%B2%97%E4%BD%93%E5%92%8C%E6%96%9C%E4%BD%93"><span class="toc-number">5.3.</span> <span class="toc-text">粗体和斜体</span></a></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E5%9D%97%E5%BC%95%E7%94%A8"><span class="toc-number">6.</span> <span class="toc-text">块引用</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%85%B7%E6%9C%89%E5%A4%9A%E4%B8%AA%E6%AE%B5%E8%90%BD%E7%9A%84%E5%9D%97%E5%BC%95%E7%94%A8"><span class="toc-number">6.1.</span> <span class="toc-text">具有多个段落的块引用</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B5%8C%E5%A5%97%E5%9D%97%E5%BC%95%E7%94%A8"><span class="toc-number">6.2.</span> <span class="toc-text">嵌套块引用</span></a></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E6%B8%85%E5%8D%95"><span class="toc-number">7.</span> <span class="toc-text">清单</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%9C%89%E5%BA%8F%E5%88%97%E8%A1%A8"><span class="toc-number">7.1.</span> <span class="toc-text">有序列表</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%97%A0%E5%BA%8F%E5%88%97%E8%A1%A8"><span class="toc-number">7.2.</span> <span class="toc-text">无序列表</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%9C%A8%E5%88%97%E8%A1%A8%E4%B8%AD%E6%B7%BB%E5%8A%A0%E5%85%83%E7%B4%A0"><span class="toc-number">7.3.</span> <span class="toc-text">在列表中添加元素</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%AE%B5%E8%90%BD-1"><span class="toc-number">7.3.1.</span> <span class="toc-text">段落</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%9D%97%E5%BC%95%E7%94%A8-1"><span class="toc-number">7.3.2.</span> <span class="toc-text">块引用</span></a></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E9%93%BE%E6%8E%A5"><span class="toc-number">8.</span> <span class="toc-text">链接</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%B7%BB%E5%8A%A0%E6%A0%87%E9%A2%98"><span class="toc-number">8.1.</span> <span class="toc-text">添加标题</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%BD%91%E5%9D%80%E5%92%8C%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E5%9C%B0%E5%9D%80"><span class="toc-number">8.2.</span> <span class="toc-text">网址和电子邮件地址</span></a></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E5%9B%BE%E7%89%87"><span class="toc-number">9.</span> <span class="toc-text">图片</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E9%93%BE%E6%8E%A5%E5%9B%BE%E5%83%8F"><span class="toc-number">9.1.</span> <span class="toc-text">链接图像</span></a></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E8%BD%AC%E4%B9%89%E5%AD%97%E7%AC%A6"><span class="toc-number">10.</span> <span class="toc-text">转义字符</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BD%A0%E5%8F%AF%E4%BB%A5%E8%BD%AC%E4%B9%89%E7%9A%84%E5%AD%97%E7%AC%A6"><span class="toc-number">10.1.</span> <span class="toc-text">你可以转义的字符</span></a></li></ol></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2023/04/12/markdown-grammar/" title="markdown 语法"><img src="/images/archives/Snipaste_2023-04-12_16-36-06.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="markdown 语法"/></a><div class="content"><a class="title" href="/2023/04/12/markdown-grammar/" title="markdown 语法">markdown 语法</a><time datetime="2023-04-12T08:33:46.415Z" title="发表于 2023-04-12 16:33:46">2023-04-12</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/04/12/hexo-install/" title="Hexo安装教程"><img src="/images/archives/Snipaste_2023-04-12_16-14-55.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Hexo安装教程"/></a><div class="content"><a class="title" href="/2023/04/12/hexo-install/" title="Hexo安装教程">Hexo安装教程</a><time datetime="2023-04-12T06:41:15.180Z" title="发表于 2023-04-12 14:41:15">2023-04-12</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2023 By 字号楼</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><a id="to_comment" href="#post-comment" title="直达评论"><i class="fas fa-comments"></i></a><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.umd.min.js"></script><div class="js-pjax"><script>function loadGitalk () {
  function initGitalk () {
    var gitalk = new Gitalk(Object.assign({
      clientID: 'ffd3dbf43d8cca95e548',
      clientSecret: '5cecf94fa4882400fb244130db66f768167250cb',
      repo: 'blog',
      owner: 'Jokerjs',
      admin: ['Jokerjs'],
      id: '0db14a6c4f85ddfba8438c8dae69dfe5',
      updateCountCallback: commentCount
    },null))

    gitalk.render('gitalk-container')
  }

  if (typeof Gitalk === 'function') initGitalk()
  else {
    getCSS('https://cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.css')
    getScript('https://cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js').then(initGitalk)
  }
}

function commentCount(n){
  let isCommentCount = document.querySelector('#post-meta .gitalk-comment-count')
  if (isCommentCount) {
    isCommentCount.innerHTML= n
  }
}

if ('Gitalk' === 'Gitalk' || !false) {
  if (false) btf.loadComment(document.getElementById('gitalk-container'), loadGitalk)
  else loadGitalk()
} else {
  function loadOtherComment () {
    loadGitalk()
  }
}</script></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>